package com.cn.aam.checaiduo.ui.useraccess;

import android.content.Context;
import android.content.Intent;
import android.widget.TextView;

import com.cn.aam.checaiduo.AppData;
import com.cn.aam.checaiduo.R;
import com.cn.aam.checaiduo.base.BaseActivity;
import com.cn.aam.checaiduo.base.ToolBarManager;
import com.cn.aam.checaiduo.ui.arouter.UIRouter;
import com.cn.aam.checaiduo.ui.arouter.section.RouterMore;
import com.cn.aam.checaiduo.utils.SpannableUtils;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author 微木森林
 * @time 2017/6/7 上午9:41
 * @description 注册成功界面
 * @remark
 */
public class RegisterSuccessResultActivity extends BaseActivity {

    @BindView(R.id.tv_tip)
    TextView tvTip;

    public static Intent newInstance(Context context) {
        Intent intent = new Intent(context, RegisterSuccessResultActivity.class);
        return intent;
    }

    @Override
    protected int layoutId() {
        return R.layout.activity_register_success_result;
    }


    @Override
    protected void initView() {
        //toolbar
        ToolBarManager.with(this, WMContent)
                .setBackgroundColor(R.color.toolbar_bg_grey)
                .setTitle("注册")
                .setNavigationIcon(R.drawable.ic_nav_arrow_back);
        //tip
        SpannableUtils.colorNormal(tvTip, 2, 6, R.color.colorPrimary);
    }


    @OnClick(R.id.btn_auth)
    public void onClickAuth() {
        AppData.closeActivityExceptMain();
        UIRouter.getInstance().openPage(mContext, UIRouter.MORE.AUTH);
    }

    @OnClick(R.id.btn_look_around)
    public void onClickLookAround() {
        AppData.closeActivityExceptMain();
    }
}
